package MsgPackage;

/**
 * @author Omri Barda		039725890 
 * @author Amit Joseph		034608547
 * @author Gilad Shpigel  	300162393
 * @author Elad Elbaz		040539959
 * @version June 2012
 */

import files.MyFile;

public class StudentUploadFilePack extends MessagePack {
	private static final long serialVersionUID = 1L;
	private String examCode;
	private String fileName;
	private Boolean success;
	private MyFile myfile;
	private int SID;

	/**
	 * constructor
	 * 
	 * @param examCode
	 * @param SID
	 */
	public StudentUploadFilePack(String examCode, int SID) {
		this.op = OpType.uploadExamFile;
		this.examCode = examCode;
		this.SID = SID;
	}

	/**
	 * 
	 * @return the file name
	 */
	public String getFileName() {
		return fileName;
	}

	/**
	 * 
	 * @param fileName
	 *            name of the file
	 */
	public void setFileName(String fileName) {
		this.fileName = fileName;
	}

	/**
	 * 
	 * @return the exam code
	 */
	public String getExamCode() {
		return examCode;
	}

	/**
	 * 
	 * @param examCode
	 *            code of the exam to be set
	 */
	public void setExamCode(String examCode) {
		this.examCode = examCode;
	}

	/**
	 * @return the myfile
	 */
	public MyFile getMyfile() {
		return myfile;
	}

	/**
	 * @param myfile
	 *            the myfile to set
	 */
	public void setMyfile(MyFile myfile) {
		this.myfile = myfile;
	}

	/**
	 * @return the success
	 */
	public Boolean getSuccess() {
		return success;
	}

	/**
	 * @param success
	 *            the success to set
	 */
	public void setSuccess(Boolean success) {
		this.success = success;
	}

	/**
	 * @return the sID
	 */
	public int getSID() {
		return SID;
	}

	/**
	 * @param sID
	 *            the sID to set
	 */
	public void setSID(int sID) {
		SID = sID;
	}

}
